module.exports = {
    publicPath: './',
    productionSourceMap: false,
    // webpack-dev-server 相关配置
    devServer: {
        open: process.platform === 'darwin',
        host: '0.0.0.0',
        port: 8090,
        https: false,
        hotOnly: false,
        proxy: {
            '/api': {
                target: 'http://123.57.31.25:8080',
                // target: 'http://192.168.31.169:9090',
                secure: false,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }, // 设置代理
        before: app => {}
    },
}